Change Password
AutomatR.AWS.Activities.ChangePassword
The "Change Password" activity in AutomatR is part of the AWS IAM (Identity and Access Management) activities package, allowing automation processes to change the password of a specified IAM user within Amazon Web Services (AWS). This activity facilitates the management of user credentials and enhances security practices.
Properties
Name | Description |
---|---|
Input | |
Access Key ID | Provides the encrypted access key ID for your AWS account, enabling connection to the Amazon IAM service. String variables containing the access key ID. |
Secret Access Key | Provides the encrypted secret access key for your AWS account, enabling connection to the Amazon IAM service. String variables containing the secret access key. |
Region | Specifies the AWS region in which the IAM user's password should be changed. Use the RegionEndpoint enumeration to set the region. |
User Name | Specifies the name of the IAM user whose password needs to be changed. String variables containing the IAM user name. |
Password | Provides the new password for the specified IAM user. String variables containing the new password. |
Force Password Change | Enables an option that requires the user to change their password during their next login. Boolean variables to control this option. |
Misc | |
Display Name | Provides a customizable name for the activity displayed in the workflow. The display name enhances clarity and organization within the automation project. String variable or argument containing the desired display name. |
Optional | |
Delay | Specifies the amount of time (in seconds) to wait before executing the "Change Password" activity. Useful for handling synchronization issues. Integer variables containing the delay duration. Ex.: If the wait time is 1000 milliseconds or 1 sec, i.e., 1. |
Output | |
Result | Outputs the result of the "Change Password" operation, indicating whether the password change was successful or encountered errors. Variables of relevant types (e.g., Boolean variables) to store the operation result. |
How to use:
- Drag and drop the "Change Password" activity onto the workflow.
- Configure the properties by providing the required inputs, such as access key ID, secret access key, region, IAM user name, and the new password.
- Optionally, configure the delay and customize the display name.
- Execute the workflow to change the password for the specified IAM user within AWS.
Example: Consider an example where the "Change Password" activity is used to change the password for an IAM user named "john_doe" with a new password "NewPass@123":
Change Password:
Display Name: "Change User Password"
Access Key ID: "**************"
Secret Access Key: "**************"
Region: "us-east-1"
User Name: "john_doe"
Password: "NewPass@123"
Force Password Change: true
Result: isPasswordChanged
In this example, the activity attempts to change the password for the IAM user "john_doe" to "NewPass@123" and enforces a requirement for the user to change their password during the next login. The result of the operation (success or failure) is stored in the Boolean variable "isPasswordChanged" for further handling in the workflow.